<!--<page-header [title]="'批次详情'">-->

  <!--<ng-template #action><button nz-button (click)="back()"style="float: right"><i class="anticon anticon-rollback" style="font-size: 14px"></i>返回列表</button></ng-template>-->

<!--</page-header>-->
<p style="margin-bottom: 0px">&nbsp;</p>

<nz-spin [nzSpinning]="loading">


  <nz-card>

    <nz-tabset>
      <nz-tab nzTitle="工序完工"></nz-tab>
    </nz-tabset>
    <!--<ng-template #extraTemplete>-->
      <!--<ng-template #action><button nz-button (click)="back()"style="float: right"><i class="anticon anticon-rollback" style="font-size: 14px"></i>返回列表</button></ng-template>-->

    <!--</ng-template>-->

    <form nz-form [nzLayout]="'inline'" class="search__form">
      <nz-row [nzGutter]="24">
        <nz-col nzMd="3" nzSm="24">
          <nz-form-item>
            <nz-form-control>
              <input type="text" nz-input placeholder="输入供应商" [(ngModel)]="q.lifnr" name="lifnr">
            </nz-form-control>
          </nz-form-item>
        </nz-col>


        <nz-col nzMd="3" nzSm="24">
          <nz-form-item>
            <nz-form-control>
              <input type="text" nz-input placeholder="输入采购订单" (keyup)="($event.which === 13)?loaddata(1):0" [(ngModel)]="q.ebeln" name="ebeln">
            </nz-form-control>
          </nz-form-item>
        </nz-col>

        <nz-col nzMd="4" nzSm="24">
          <nz-form-item>
            <nz-form-control>
              <input type="text" nz-input placeholder="输入采购订单项目"   (keyup)="($event.which === 13)?loaddata(1):0" [(ngModel)]="q.ebelp" name="ebelp">
            </nz-form-control>
          </nz-form-item>
        </nz-col>

        <nz-col nzMd="3" nzSm="24">
          <nz-form-item>
            <nz-form-control>
              <input type="text" nz-input placeholder="输入物料号" (keyup)="($event.which === 13)?loaddata(1):0" [(ngModel)]="q.matnr" name="matnr">
            </nz-form-control>
          </nz-form-item>
        </nz-col>
        <nz-col nzMd="3" nzSm="24">
          <nz-form-item>
            <nz-form-control>
              <input type="text" nz-input placeholder="输入物料描述" (keyup)="($event.which === 13)?loaddata(1):0" [(ngModel)]="q.maktx" name="maktx">
            </nz-form-control>
          </nz-form-item>
        </nz-col>

        <nz-col nzLg="3">

          <button nz-button type="button" [nzType]="'primary'" class="mx-sm" (click)="loaddata(1)">{{'search' | translate}}</button>
        </nz-col>


      </nz-row>
    </form>
  </nz-card>
  <button nz-button type="button"   [nzLoading]="loading"  style="margin-bottom: 8px" (click)="packatta()"><i class="anticon anticon-download"></i>导出</button>
  <nz-upload [nzAction]="uploadExcelUrl" [nzShowUploadList]="false" nzAccept="application/vnd.ms-excel" (nzChange)="uploadProd($event)">
    <button   nz-button style="margin-left: 10px;margin-right: 8px;margin-bottom: 8px"><i class="anticon anticon-upload"></i><span>导入完工信息</span></button>
  </nz-upload>
  <simple-table #st
                [columns]="columns"
                [data]="url"
                [ps]="ps"
                [extraParams]="q"
                [resReName]="{ total: 'total', list: 'data'}"
                [reqReName]="{pi:'pageNumber', ps: 'pageSize'}"
                toTopInChange
                [showTotal]="true"
                [showPagination]="true"
                [showSizeChanger]="true"
                [scroll]="{  x: '1800px' }"
                (checkboxChange)="checkboxChange($event)"

  >
  </simple-table>

</nz-spin>
